import React from 'react'
import BusinessIndex from '@/components/business/index'
import Login from '@/components/business/login'
import Profile from '@/components/business/profile'
import Email from '@/components/business/email'
import Coupon from '@/components/business/coupon'
import About from '@/components/business/about'

const list = [
    {
      path: 'index',
      component: BusinessIndex,
      auth: true,
    },
    {
      path: 'login',
      component: Login,
    },
    {
      path: 'profile',
      component: Profile,
      auth: true,
    },
    {
      path: 'email',
      component: Email,
      auth: true,
    },
    {
      path: 'coupon',
      component: Coupon,
      auth: true,
    },
    {
      path: 'about',
      component: About,
      auth: true,
    },
];

//默认父组件 可以自己定义
const layout = () => {
  return(<><React.Router.Outlet/></>)
}

const RouterList = [
  {
    path: '/business',
    component: layout,
    children: list,
  }
]

export default RouterList

